package com.hd.trans.share;

import androidx.annotation.IntRange;

public class TextToPdfParam {
    // 文档类型 1-docx,2-doc,4-xlsx,5-xls,6-pdf
    // 默认doc
    @IntRange(from = 1, to = 6)
    private int fileType = 2;

    // word宽
    private int width = 390;
    // word高
    private int height = 540;

    //  文本内容
    private String txtContent;
    //  文件名
    private String fileName;

    private String txtlanguage;

    public TextToPdfParam(String content, String fileName, String txtlanguage) {
        this.txtContent = content;
        this.fileName =fileName;
        this.txtlanguage =txtlanguage;
    }

    public TextToPdfParam(String content, String fileName) {
        this.txtContent = content;
        this.fileName =fileName;
    }

    @IntRange(from = 1, to = 6)
    public int getFileType() {
        return fileType;
    }

    public void setFileType(@IntRange(from = 1, to = 6) int fileType) {
        this.fileType = fileType;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getTxtContent() {
        return txtContent;
    }

    public void setTxtContent(String txtContent) {
        this.txtContent = txtContent;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getTxtlanguage() {
        return txtlanguage;
    }

    public void setTxtlanguage(String txtlanguage) {
        this.txtlanguage = txtlanguage;
    }
}
